home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / SNNSV32.ZIP / SNNSv3.2 / xgui / sources / d3_graph.ph < prev    next >
Encoding:
Text File  |  1994-04-25  |  1.6 KB  |  65 lines

  1. /*****************************************************************************
  2.   FILE           : d3_graph.ph
  3.   SHORTNAME      : graph.ph
  4.   SNNS VERSION   : 3.2
  5.  
  6.   PURPOSE        : header for graph.c
  7.   NOTES          :
  8.  
  9.   AUTHOR         : Ralf Huebner
  10.   DATE           : 1.12.1991
  11.  
  12.   CHANGED BY     : Sven Doering
  13.   IDENTIFICATION : @(#)d3_graph.ph    1.9 3/2/94
  14.   SCCS VERSION   : 1.9
  15.   LAST CHANGE    : 3/2/94
  16.  
  17.              Copyright (c) 1990-1994  SNNS Group, IPVR, Univ. Stuttgart, FRG
  18.  
  19. ******************************************************************************/
  20. #ifndef _D3_GRAPH_DEFINED_
  21. #define  _D3_GRAPH_DEFINED_
  22. /* begin global definition section */
  23.  
  24. void d3_drawPoly (register d3_polygon_type *p);
  25. void d3_drawLine (int x1, int y1, int x2, int y2);
  26.  
  27. void d3_setClipWindow (int x0, int y0, int x1, int y1);
  28.  
  29. int d3_intens_to_grayval (float intens);
  30. int d3_value_to_color (float value);
  31.  
  32.  
  33. void d3_setColor (long unsigned int color);
  34. void d3_setBlackColor (void);
  35. void d3_setLinkColor (float *weight);
  36.  
  37. void d3_clearDisplay (void);
  38. void d3_getRootSizes (unsigned int *xsize, unsigned int *ysize);
  39.  
  40.  
  41. /* end global definition section */
  42.  
  43. /* begin private definition section */
  44.  
  45. #define MAXCOLSTEPS 15
  46. #define POLY_MASK(elem)  (1 << (&(*(*poly_dummy+elem)) - (float *)poly_dummy))
  47.  
  48. static void put_pixel (int px, int py, vector point);
  49.  
  50. typedef struct {                 /* WINDOW */
  51.      int x0, y0;                 /* xmin and ymin */
  52.      int x1, y1;                 /* xmax and ymax */
  53. } windowType;
  54.  
  55. static vector *poly_dummy;
  56.  
  57.  
  58. /* end private definition section */
  59.  
  60. #endif 
  61.  
  62.  
  63. /* end of file */
  64. /* lines: */
  65.